<template>
    <div class="chat">
        <img :src="Detail.img" alt="">
    </div>
</template>

<script>
        import {getClassDetail} from '../api/details'
    export default {
        data() {
            return {
                Detail:[]
            }
        },
        mounted() {
            this.getDetail()
        },
        methods: {
            getDetail(){
                let {id} = this.$route.params
                getClassDetail(id).then(res=>{
                    console.log(res);
                    this.Detail = res.data
                })
            }
        },
    }
</script>

<style scoped>
    .chat{
        width: 100%;
        height: 60vh;
        background: cornflowerblue;
    }
    img{
        width: 100%;
        height: 100%;
    }
</style>